<div class="x-datatable" ng-init="vm.init();refresh(vm.callback);">
  <script id="opt-toolbar" type="text/ng-template">
    <div>
      <div class="pull-right" style="margin-left:4px">
        <div class="btn-group x-btn-list">
          <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
            <i class="fa fa-file-o"></i> 文件 <span class="caret"></span></button>
          <ul class="dropdown-menu">
            <li><button type="button" class="btn btn-default btn-block" ngf-select="vm.open($file)"
                ngf-accept="'.csv'">打开</button></li>
            <li class="divider"></li>
            <li><button type="button" class="btn btn-default btn-block" ng-click="vm.saveAs()">另存为</button></li>
          </ul>
        </div>
        <div class="btn-group x-btn-list">
          <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
            <i class="fa fa-pencil"></i> 编辑 <span class="caret"></span></button>
          <ul class="dropdown-menu">
            <li><a id="copy" href="javascript:void(0)">复制</a></li>
            <li class="divider"></li>
            <li><a href="javascript:void(0)" ng-click="vm.clear()">清除</a></li>
          </ul>
        </div>
      </div>
      <div class="pull-right x-datatable-search">
        <input type="text" class="form-control" id="query" placeholder="查找内容" autofocus>
      </div>
    </div>
  </script>
  <div class="row x-view-body">
    <div class="col-md-12">
      <div class="x-view-scope">
        <div id="datatable"></div>
      </div>
    </div>
  </div>
</div>
